package com.lucy.wx.miniapp.params;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @author kindear
 * 小程序授权创建参数
 */
@Data
@ApiModel(value = "授权更新参数")
public class MiniAppGrantUpdateParams {

    @NotBlank(message = "ID不可为空")
    @ApiModelProperty("授权记录ID")
    String id;

    @ApiModelProperty("开发者姓名")
    String devName;

    @ApiModelProperty("开发者邮箱")
    String devEmail;

    @ApiModelProperty("开发者联系方式")
    String devMobile;


    @NotBlank(message = "小程序名称不可为空")
    @ApiModelProperty("小程序名称")
    String appName;

    @NotBlank(message = "appId 不可为空")
    @ApiModelProperty("小程序APPID")
    String appId;

    @ApiModelProperty("小程序APPSECRET")
    String appSecret;

    @ApiModelProperty("小程序版本")
    String version;

    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "到期时间",name = "expireDate")
    Date expireDate;
}
